<?php

namespace IDock\Insurance\QHIC\Request;

use IDock\Insurance\QHIC\Request\AllQHICRequest;
use IDock\Insurance\QHIC\Response\ProposalRecallResponse;
use IDock\Visitor\ProposalRecallVisitor;

class ProposalRecallRequest extends AllQHICRequest
{
    protected $requestType = 'VHL0012';

    protected $response = ProposalRecallResponse::class;

    protected $urlTip = '人工核保撤回';

    /**
     * @var  ProposalRecallVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'Base' => [
                'CAppNo' => $this->visitor->biInquiryNo ?: $this->visitor->ciInquiryNo
            ],
        ];
    }
}
